package com.lanyam.travel.base.entity;

import java.sql.Timestamp;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author rosson
 * @since 2020-01-29
 */
@TableName("goods_date")
public class GoodsDate extends Model<GoodsDate> {

    private static final long serialVersionUID = 1L;
    @JsonProperty(value="id")
    @TableId(type = IdType.AUTO)
    private Integer id;
    
    @JsonProperty(value="goodsId")
    @TableField("goods_id")
    private String goodsId;
    
    @JsonProperty(value="price")
    private double price;
    
    @TableField("the_date")
    @JsonProperty(value="theDate")
    private Date theDate;
    
    @JsonProperty(value="remaindNum")
    @TableField("remaind_num")
    private Integer remaindNum;
    
    @JsonProperty(value="productType")
    @TableField("product_type")
    private int productType;
    
    @JsonProperty(value="priceDisparity")
    @TableField("price_disparity")
    private double priceDisparity;
    
    
    public double getPriceDisparity() {
		return priceDisparity;
	}

	public void setPriceDisparity(double priceDisparity) {
		this.priceDisparity = priceDisparity;
	}

	public int getProductType() {
		return productType;
	}

	public void setProductType(int productType) {
		this.productType = productType;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	

    public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getGoodsId() {
        return goodsId;
    }

    public GoodsDate setGoodsId(String goodsId) {
        this.goodsId = goodsId;
        return this;
    }

	public Date getTheDate() {
		return theDate;
	}

	public void setTheDate(Date theDate) {
		this.theDate = theDate;
	}

	public Integer getRemaindNum() {
        return remaindNum;
    }

    public GoodsDate setRemaindNum(Integer remaindNum) {
        this.remaindNum = remaindNum;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GoodsDate{" +
        ", id=" + id +
        ", goodsId=" + goodsId +
        ", price=" + price +
        ", theDate=" + theDate +
        ", remaindNum=" + remaindNum +
        "}";
    }
}
